---
layout: page
description:
tagline: 西加加大法好！
---
{% include JB/setup %}

{% for post in paginator.posts %}
<div class="wrapper">
  <h2 class="h2 entry-title"><a href="{{ post.url }}">{{ post.title }}</a></h2>
  {% if post.content contains "<!-- more -->" %}
  {{ post.content | split:'<!-- more -->' | first }}
  {% else %}
  {{ post.content | strip_html | truncatewords:50 }}
  {% endif %}

  <div class="status">
    <div class="col-md-10 meta visible-lg visible-md">
      <span class="glyphicon glyphicon-calendar"></span><p>{{ post.date | date_to_string }}</p>
      <span class="glyphicon glyphicon-tags"></span> {% if post.tags %}{% for tag in post.tags %}<a href="/tags.html#{{ tag }}-ref" title="{{ tag }}"><p>{{ tag }}</p></a>{% endfor %}{% endif %}
      <span class="glyphicon glyphicon-comment"></span><a href="{{ post.url }}#comments"><p>Comments<span class="ds-thread-count" data-thread-key="{{ post.id }}" data-count-type="comments"></span></p></a>
    </div>
    {% if post.content contains "<!-- more -->" %}
    <a class="btn btn-primary btn-sm pull-right" href="{{ post.url }}"><span class="readmore">Read More &raquo;</span></a>
    {% endif %}
    <div class="clearfix"></div>
  </div>
</div>
{% endfor %}

<!-- Pagination links -->
<div class="pull-right">
  {% if paginator.previous_page %}
    {% if paginator.previous_page == 1 %}
      <a class="btn btn-primary btn-sm" href="/">Home</a>
      <a class="btn btn-primary btn-sm" href="/">&laquo; Prev</a>
    {% else %}
      <a class="btn btn-primary btn-sm" href="/">Home</a>
      <a class="btn btn-primary btn-sm" href="/page{{paginator.previous_page}}/">&laquo; Prev</a>
    {% endif %}
  {% else %}
    <span><a class="btn btn-primary btn-sm disabled" href="/">Home</a></span>
    <span><a class="btn btn-primary btn-sm disabled">&laquo; Prev</a></span>
  {% endif %}
  <span><a class="btn btn-primary btn-sm disabled">Page: {{paginator.page}} of {{paginator.total_pages}}</a></span>
  {% if paginator.next_page %}
    <a class="btn btn-primary btn-sm" href="/page{{paginator.next_page}}/">Next &raquo;</a>
    <a class="btn btn-primary btn-sm" href="/page{{paginator.total_pages}}/">Last</a>
  {% else if paginator.page == paginator.total_pages %}
    <span><a class="btn btn-primary btn-sm disabled">Next &raquo;</a></span>
    <span><a class="btn btn-primary btn-sm disabled">Last</a></span>
  {% endif %}
</div>
